/**
 ******************************* ICE *******************************
 * ========================================================================
 * Project:		iceservices
 * Package:		org.ice4apps.service
 * File:		SystemServiceLocal.java
 * Author: 		robin
 * Date: 		Feb 14, 2009
 * Description:	
 * ========================================================================
 * 
 */

package org.ice4apps.service;

import javax.ejb.Local;
import org.ice4apps.service.bean.EnterpriseAddServiceRequest;
import org.ice4apps.service.bean.EnterpriseGetServiceResponse;
import org.ice4apps.service.bean.EnterpriseListGetServiceResponse;
import org.ice4apps.service.bean.LoginServiceRequest;

@Local
public interface IceSystemServiceLocal extends IceEnterpriseServiceLocal {
    
    /**
     * Login for system admin
     * @param req
     * @return
     */
    public String login (LoginServiceRequest req);
    /**
     * @param sessionId
     */
    public void logout (String sessionId);
    
    public void addEnterprise (String sessionId, EnterpriseAddServiceRequest enterprise);
    
    public EnterpriseGetServiceResponse getEnterprise (String sessionId, String name);
    
    public void deleteEnterprise (String sessionId, String name);
    
    public EnterpriseListGetServiceResponse getEnterpriseList (String sessionId);
}
